
export function getXuan(xuanList, roles) {
	var xuanList1 = []
	xuanList.forEach((list, index) => {
		roles.forEach(route => {
			if (route === list.ident) {
				list.pd = true
			}
		})
		xuanList1.push(list)
	})
	return xuanList1
}
export function judgeButton(name, roles) {
	var pd = false
	roles.forEach(route => {
		if (route === name) {
			pd = true
		}
	})
	return pd
}